package com.aaa.service.impl;

import com.aaa.dao.PublisherMapper;
import com.wsc.entity.Publisher;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PublisherServiceImpl {
    @Resource
    PublisherMapper publisherMapper;
    public List<Publisher> select(){
        return publisherMapper.selectList(null);
    }
    public Integer insert(Publisher publisher){
        //System.out.println(publisher+"这是service属性");
        return publisherMapper.insert(publisher);
    }
    public Integer update(Publisher publisher){
        return publisherMapper.updateById(publisher);
    }
    public Integer delete(Integer id){
        return publisherMapper.deleteById(id);
    }
}
